﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace StudentManagerService.Models
{
    /// <summary>
    /// 学生实体类
    /// </summary>
    public class Student: Base
    {
        /// <summary>
        /// 学生姓名
        /// </summary>
        public string? Name { get; set; }
        public int? Age { get; set; }
        public short? Sex { get; set; }
        public string? Tel { get; set; }

        [Required]
        public string? Email { get; set; }

        [DefaultValue("")]
        public string? Avatar { get; set; }

        public string? Nickname { get; set; }
        
        public DateTime? Birthday { get; set; }
    }
}
